/**
 * 
 * 广州锐鹏计算机科技有限公司（www.ruipengkj.com）
 * 
 * 
 * Copyright (c) 2011-2012 RUIPENGKJ.Co.Ltd. All rights reserved.
 * 
 * */
package com.ruipengkj.bean;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * 说明： Entity Name 礼物表
 * 
 * @Author：李智深
 * @Date：2012-03-14
 */
@Entity
@Table(name = "ruipeng_tb_TSiteGift")
public class TSiteGift implements Serializable {
	private static final long serialVersionUID = 1L;
	private String GiftID;// CHAR(15) NULL,礼物编号
	private String Name;// VARCHAR(256) NULL,礼物名称
	private int Point;// INTEGER NULL,礼物所需要积分
	private double Price;// DECIMAL(20,3) NULL,价格
	private String Des;// VARCHAR(10240) NULL,描述
	private String MainImage;// VARCHAR(256) NULL,图片
	private byte Type;// TINYINT NULL,礼物类型
	private String Creator;// CHAR(15) NULL创建人
	
	private Set<TMySiteGift> TMySiteGifts=new HashSet<TMySiteGift>(0);//我的礼物
	
	@Id
	@Column(name = "GiftID",length=15)
	public String getGiftID() {
		return GiftID;
	}
	public void setGiftID(String giftID) {
		GiftID = giftID;
	}
	
	@Column(name = "Name",length=256)
	public String getName() {
		return Name;
	}
	public void setName(String name) {
		Name = name;
	}
	@Column(name = "Point")
	public int getPoint() {
		return Point;
	}
	public void setPoint(int point) {
		Point = point;
	}
	@Column(name = "Price", precision = 20, scale = 3)
	public double getPrice() {
		return Price;
	}
	public void setPrice(double price) {
		Price = price;
	}
	@Column(name = "Des",length=10240)
	public String getDes() {
		return Des;
	}
	public void setDes(String des) {
		Des = des;
	}
	@Column(name = "MainImage",length=256)
	public String getMainImage() {
		return MainImage;
	}
	public void setMainImage(String mainImage) {
		MainImage = mainImage;
	}
	@Column(name = "Type")
	public byte getType() {
		return Type;
	}
	public void setType(byte type) {
		Type = type;
	}
	@Column(name = "Creator",length=15)
	public String getCreator() {
		return Creator;
	}
	public void setCreator(String creator) {
		Creator = creator;
	}
	@OneToMany(mappedBy="TSiteGift")
	@JoinColumn(name="GiftID")
	public Set<TMySiteGift> getTMySiteGifts() {
		return TMySiteGifts;
	}
	public void setTMySiteGifts(Set<TMySiteGift> tMySiteGifts) {
		TMySiteGifts = tMySiteGifts;
	}
	
}
